package paf.exporter;

import java.util.ArrayList;

public class ExportFactory {
	private ArrayList<FileInterface> fileInterfaces;
	private JPGFile jpgfile;
	private PDFFile pdffile;
	private CUCFile cucfile;
	
	protected ExportFactory(){
		fileInterfaces = new ArrayList<FileInterface>();
		jpgfile = new JPGFile();
		pdffile = new PDFFile();
		cucfile = new CUCFile();
		fileInterfaces.add(jpgfile);
		fileInterfaces.add(pdffile);
		fileInterfaces.add(cucfile);
	}
	
	public boolean addFile(FileInterface fileinterface){
		return fileInterfaces.add(fileinterface);
	}
	
	public ArrayList<FileInterface> getFileInterfaces(){
		return fileInterfaces;
	}
	public void removeFileInterface(FileInterface fileinterface){
			for(int i = 0; i < fileInterfaces.size(); i++){
				if(fileInterfaces.get(i) == fileinterface){
					fileInterfaces.remove(i);
				}
			}
	}

}
